package com.spring.provideronetest.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;

/**
 * @auther zhangxiangtao
 * @date 2020/11/2
 */
public class Iotest {
	public static void main(String[] args) {
		FileInputStream io = null;

		try{
			io = new FileInputStream("D:\\工作\\易联众\\综合文件\\和税务对接\\税务数据同步\\税务数据同步\\职工税务\\职工税务改造-接口以及部署信息.txt");
			String encoding = "UTF-8";
			File file = new File("D:\\工作\\易联众\\任务\\三明对账\\对账文档.txt");
			if(file.exists() && file.isFile()){
				InputStreamReader inr =	new InputStreamReader(new FileInputStream(file),encoding);
				BufferedReader bufferedReader = new BufferedReader(inr);
				String readline = null;
				int cou = 0;
				while ((readline = bufferedReader.readLine()) != null){
					if(cou == 0){
						cou++;
						continue;
					}
					String[] strs = readline.split("\\s+");
					System.out.println(strs[1]+"--"+strs[0]);
					for (String ss : strs){
						System.out.println(ss);
					}
				}
				inr.close();
				bufferedReader.close();
			}
		}catch (Exception e){

		}
	}
}
